<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8">
		<title>修改密码</title>
		<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css" />
		<link rel="stylesheet" type="text/css" href="../../static/css/me.css" th:href="@{/css/me.css}"/>
	</head>
	<body>
		<!-- 主体 -->
		<div class="ui container margin-t-small">
			<form class="ui form"  th:action="@{/update/pwd}" method="post">
				<div class="ui segment padded-lr-larg">
					<div class="ui mini negative message"  th:unless="${#strings.isEmpty(message)}" th:text="${message}"></div>
					<input type="hidden" name="sno" th:value="${session.student.sno}">
					原密码：
					<div class="field">
						<input type="text" name="pwd" placeholder="原密码" />
					</div>
					<p>新密码：</p>
					<div class="field">
						<input type="text" name="password" placeholder="新密码" />
					</div>
					<div class="ui right aligned basic segment">
						<button class="ui button" onclick="window.history.go(-1)">返回</button>
						<button type="submit" class="ui blue button">提交</button>
					</div>
				</div>
			</form>
		</div>



		<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
		<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.js"></script>
		<script>
			$('.ui.dropdown').dropdown();
			$('.ui.form')
					.form({
						fields: {
							recordTime: {
								identifier: 'recordTime',
								rules: [{
									type: 'empty',
									prompt: '请输入日期'
								}]
							},
							name: {
								identifier: 'name',
								rules: [{
									type: 'empty',
									prompt: '请输入姓名'
								}]
							}
						}
					});
		</script>
	</body>
</html>
